package com.kuang.log;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author asus
 * @date 2021/6/8 13:22:06
 * @description
 */
public class Afterlog implements AfterReturningAdvice {

    public void afterReturning(Object returnValue, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("执行了"+method.getName()+"方法为，返回结果是"+returnValue);
    }
}
